-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added vlan_range support #396
Conversation
models/evc.py
Outdated
@@ -1480,6 +1623,7 @@ def handle_topology_update(self, switches: dict): | |||
# All intra-switch EVCs do not have current_path. | |||
# In case of inter-switch EVC and not current_path, | |||
# link_down should take care of deactivation. | |||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This return
is here to avoid early activations so consistency checks can be tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. you can add a TODO
as well to remove it later.
Btw, this part is also being changed on #383
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased it and tested it, both are working well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Alopalao, I was checking David's PR commits history he's already got the correct commits there:
commit c9d91ed51799ce56e76e937d92bcb9cae6e1a9fb
Author: Vinicius Arcanjo
Date: Tue Oct 31 17:50:48 2023 -0300
feat: add set_vlan only if in_vlan_a != in_vlan_z when pushing UNI flow
related to issue 389
and on master
same sha1:
commit c9d91ed51799ce56e76e937d92bcb9cae6e1a9fb
Author: Vinicius Arcanjo
Date: Tue Oct 31 17:50:48 2023 -0300
feat: add set_vlan only if in_vlan_a != in_vlan_z when pushing UNI flow
related to issue 389
So you'll need to sort out why these commits got rewritten, if you need help with this let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Alopalao, functionality-wise it's getting there. Excellent to this it working for the first time. I've hit an exception though, and also raised a few points.
Regarding the all 1's mask I've also opened an issue to look into it, and then we can make a final decision about whether or not to send with all 1s mask.
models/evc.py
Outdated
@@ -1480,6 +1623,7 @@ def handle_topology_update(self, switches: dict): | |||
# All intra-switch EVCs do not have current_path. | |||
# In case of inter-switch EVC and not current_path, | |||
# link_down should take care of deactivation. | |||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. you can add a TODO
as well to remove it later.
Btw, this part is also being changed on #383
Last commit is more stable. Tested with this script. This script works with the last update from kytos, topology and of_lldp PRs. First change the vlan used by
This The evcs created are from "01:1" and "02:1" interfaces. The VLANs values are calculated as follows:
The vlans for circuits are created as:
It takes time to create all the circuit, but it is successful and with no warnings and errors. The final result should be an empty list for |
@@ -5,5 +5,5 @@ | |||
# pip-compile --output-file requirements/dev.txt requirements/dev.in | |||
# | |||
-e git+https://github.com/kytos-ng/python-openflow.git#egg=python-openflow | |||
-e git+https://github.com/kytos-ng/kytos.git#egg=kytos[dev] | |||
-e git+https://github.com/kytos-ng/kytos.git@epic/vlan_range#egg=kytos[dev] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting this when PR lands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog also hasn't been updated |
related to issue 389
- Deleted unnecessary raises
- Fixed partial vlan list update
- Updated changelog
4431600
to
2c7b49c
Compare
- Reverted RANGE_SB_PRIORITY adittion
Bypassing checking of |
- Deleted unnecessary raises
- Fixed partial vlan list update
- Updated changelog
- Reverted RANGE_SB_PRIORITY adittion
… into epic/vlan_range
Migrating to another branch epic/vlan_range_copy. This one have unnecessary commits. Changing it to draft so issues are not closed. New PR |
Closing this since Aldo's PR #407 has landed. Nicely done, Aldo. |
Closes #18
Closes #309
Summary
This PR needs kytos PR
Added support for
vlan_range
epic. Currently only when both UNIs have the same list of tagsLocal Tests
[[20, 30]]
and they are being updated to[[25, 30]]
.End-To-End Tests